package com.ocom.wxapi.client;

import com.ocom.common.constant.ExposeApiUrl;
import com.ocom.common.request.exposeapi.wgkq.WgkqAbsenteeismRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "exposeapi")
public interface ExposeApiFeignService {

    @PostMapping(ExposeApiUrl.URL_InsideApi_FangYi)
    Result insideFangYi(@RequestParam("type") Integer  type,@RequestParam("companyId") Integer  companyId,@RequestParam("identity")  String identity,@RequestParam("name")  String name);

    //旷课列表
    @PostMapping(ExposeApiUrl.URL_ExposeApi_wgkqAbsenteeism)
    public Result absenteeism(@Validated @RequestBody WgkqAbsenteeismRequest request) ;
}
